#include "StringOps.h"
#include <ctype.h>
#include <stdlib.h>

std::vector<std::string> split(std::string _str, char _splitter) {
	std::vector<std::string> result;
	unsigned int i = 0;
	unsigned int last = 0;
	while(i < _str.length()) {
		if(_str[i] == _splitter) {
			result.push_back(_str.substr(last, i-last));
			last = i+1;
		}
		i++;
	}
	result.push_back(_str.substr(last, i-last));
	return result;
}

bool is_numeric(std::string _str) {
	char * p;
	strtod (_str.c_str(), &p);
	return *p == '\0';
}
